<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
	String openId = (String)request.getSession().getAttribute("openId");
	if(openId==null || openId.equals("")){
	 	openId = (String)request.getParameter("openId");
	 	request.getSession().setAttribute("openId", request.getParameter("openId"));	
	}
	 
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,,user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">
    <title>中奖信息查看</title>
    <link href="/bootstrapDemo/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link href="/bootstrapDemo/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
    <script src="/bootstrapDemo/js/jquery.js"></script>
    <script src="/bootstrapDemo/bootstrap/js/bootstrap.min.js"></script>
  </head>
  
<body >
<img src="/wpages/images/top-acti.jpg" style="width: 100%;height: 70px;">
 <div class="panel panel-default" style="margin:10px; " >
        <div class="panel-body" >
         	${tuser.WNickname },您目前一共有<s:property value="resultList.size()"/>个中奖信息。
        </div>
 </div>
<div class="container" style="margin: 10px; padding: 0px;" >
	<div class="panel panel-primary">
		  <div class="panel-heading">中奖信息</div>
		  <div class="panel-body">
		  	<table class="table table-bordered" style="font-size: 12px;text-align: center;">
		  		<tr style="background-color: #eee;border: 0" >
					<td >活动类型</td>
					<td >中奖时间</td>		
					<td >奖项</td>		
					<td >兑换码</td>		
					<td >状态</td>		
				 </tr>
		  		<s:iterator value="resultList" id="resu" status="statu">
				 	 <tr onMouseOut="this.style.background='#fff'"
			onMouseOver="this.style.background='#F4E088'" style="background-color: #fff;">
						<td ><s:property value="#resu.ptype"/></td>		
						<td ><s:date name="%{#resu.addTime}"	 format="yyyy-MM-dd hh:mm:ss" /> </td>		
						<td ><s:property value="#resu.prized"/></td>		
						<td ><s:property value="#resu.scno"/></td>		
						<td ><s:property value="#resu.pstate"/></td>		
					 </tr>
				 </s:iterator>
			  </table>
			   <ul class="pager" >
				  <li ><a href="/award/getWAwresultByOpenId.action?currentPage=${pageData.currentPage-1}" ><font color="black">上一页</font></a></li>
				  <li><a href="/award/getWAwresultByOpenId.action?currentPage=${pageData.currentPage+1}"><font color="black">下一页</font></a></li>
				</ul>
		  </div>
		  
		  </div>
</div>
<div id="footer" style="height: 40px; text-align: center;">
 	<p>版权所有@功夫梦·中国 2014-2016</p>
 </div>

<div style="height: 30px;"></div>
<jsp:include page="/wpages/bottom.jsp"></jsp:include>

</body>
</html>